POV-Ray : Newsgroups : povray.general : How about $ for declare? : Re: How about $ for declare? Server Time
3 Aug 2024 00:19:33 EDT (-0400)
  Re: How about $ for declare?  
From: Rafal 'Raf256' Maj
Date: 14 Aug 2004 04:42:49
Message: <Xns95456D5662A7raf256com@203.29.75.35>
NotForSpam@AskIfUWant news:411dcc08@news.povray.org

> You're quite right.  I tried it, and to alias it, you'd have to write:
>   #macro sph() sphere #end
>   sph() { <sphere and texture options> }
> And the parentheses would have to be included with every invocation,
> adding two more characters and obfuscation to otherwise straight code.
>  It would hardly be a worthwhile "abbreviation"

so we just need an #macro that can be called without "()"... I think that

#alias sph sphere

is a good idea. Perhaps it is not hard to implement?


-- 
http://www.raf256.com/3d/
Rafal Maj 'Raf256', home page - http://www.raf256.com/me/
Computer Graphics


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.